package chain_of_responsibility_pattern.demo;

/**
 * @author liwuji
 * @date 2024/1/17
 * @desc
 **/
public class Main {
    public static void main(String[] args) {

        Demo demo3 = new Leve3();
        
        Demo demo2 = new Leve2();
        demo2.setNextDemo(demo3);
        Demo demo1 = new Leve1();
        demo1.setNextDemo(demo2);
        
        demo1.ex(4);
        }
}
